/*==============================================================================
Description:
==============================================================================*/

#ifndef __INTERPOLATE_H__
#define __INTERPOLATE_H__

#include "../cfg/prj.h"

/***************************************************************************************************************************************/
#ifdef __cplusplus
extern "C" {
#endif

/***************************************************************************************************************************************/


//---------------------------------------------------------------------------
// Constant Definitions

//---------------------------------------------------------------------------
// Macros

//---------------------------------------------------------------------------
// Global Variable References

typedef struct
{
	U32 Input_X;
	U32 X[4];
	U32 Y[4];
	U32 Output_Y;
}INTERPOLATE;

/***************************************************************************************************************************************/

#ifndef __INTERPOLATE_C__
#define INTERPOLATE_EXTERN  extern
#else
#define INTERPOLATE_EXTERN
#endif


//---------------------------------------------------------------------------
// Global Variable References
//EPSBLDC_ADC_EXTERN ADC_RESULT_OUT 	Adc_Result_Out;
//---------------------------------------------------------------------------
// Function Prototypes

INTERPOLATE_EXTERN void Interpolate_Calc(INTERPOLATE *p);

/***************************************************************************************************************************************/
#ifdef __cplusplus
}
#endif /* extern "C" */

//---------------------------------------------------------------------------
#endif  // end of __SWI_THREAD_H__ definition
